import {SimplePagination} from "../../../utils/util.tsx";

export type Data = {
    key: string;
    id: string,         // 任务 ID
    instanceId: string, // 流程实例的 ID
    actorIds: string,   // 当前任务的审核人 ID, 如有多个则以英文逗号分隔
    actorNames: string, // 当前任务的审核人, 如有多个则以英文逗号分隔
    createId: string,
    createBy: string,
    createTime: number  // 创建时间
    taskKey: string,    // 对应 nodeKey
    taskName: string    // 对应 nodeName
    variable: string
}

export type Node = {
    key: string,
    value: string | null,
    label: string,
}

export type State = {
    data: Data[],
    pagination: SimplePagination,
    loading: boolean,

    optionsOfCreateBy: { value: string }[]
    createId: string | undefined
}

export type Props = {
    // userId: string | undefined,
    embedded: boolean,
}
